package com.aqie.appletserver.bean.request;

import com.aqie.appletserver.bean.enumclass.Lang;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import static com.aqie.appletserver.bean.enumclass.Lang.CHN_ENG;

@Data
public class WordRequest {

    @JsonProperty("language_type")
    private Lang languageType = CHN_ENG;

    // 是否检测图像朝向，默认不检测
    @JsonProperty("detect_direction")
    private boolean detectDirection = false;

    // 是否检测语言，默认不检测 中文、英语、日语、韩语
    @JsonProperty("detect_language")
    private boolean detectLanguage = false;

    // 是否输出段落信息
    private boolean paragraph = true;

    // 是否返回识别结果中每一行的置信度
    private boolean probability = false;
}
